# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=libxaw3d
pkgver=1.6.3
pkgrel=0
pkgdesc="Toolkit that adds a 3D appearance and support for XPM images"
url="https://directory.fsf.org/wiki/Xaw3d"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="libxmu-dev util-macros"
source="https://xorg.freedesktop.org/archive/individual/lib/libXaw3d-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/libXaw3d-$pkgver"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/"$pkgname"/
}

sha512sums="
f1f404121ca4d41e7d1b244c67c6bc198474c517d52e14ef5477ff53fac5c0ad3d7dbd11ed9391aa894ba8af5302de105a5dea8803685213bde2618c260c3360  libXaw3d-1.6.3.tar.gz
"
